let AcroMLEjsSelector= `
<% 
  let langs=[];
  let isFoundEnglish=false;
  for(let LCID2 in AcroML.Engine.instance.dd.LCIDList){
    if (LCID2==1033) isFoundEnglish=true;
    let lang=AcroML.culture.findCultureByLCID(LCID2);
    langs.push(lang);
  }
  if (!isFoundEnglish){
    let lang=AcroML.culture.findCultureByLCID(1033);
    langs.unshift(lang);
  }
  function getLanguageText(lng){
    return lng.LCID+','+
      lng.LanguageName_Native+','+
      lng.RegionName_Native;
  }
%>
<select id="combobox_lang" value="<%=LCID%>" onChange="onLanguageChange(this)">
<% for(let i=0;i<langs.length;i++){
  let lang=langs[i];
  if(lang.LCID==LCID){%>
  <option value="<%=lang.LCID%>" selected>
    <%=getLanguageText(lang)%>
  </option>
  <%}else{%>
    <option value="<%=lang.LCID%>">
      <%=getLanguageText(lang)%>
    </option>
  <%}%>
<%}%>
</select>
`
export default AcroMLEjsSelector;